package com.kk.demo.java8.lambda.base02;

import java.util.function.Function;

/**
 * 用户对象信息
 * @author liujun
 * @date 2016年8月27日
 * @verion 0.0.1
 */
public class User {

    public User() {
    }
    

    public User(String userName, String passwd, int age, int hight) {
        super();
        this.userName = userName;
        this.passwd = passwd;
        this.age = age;
        this.hight = hight;
    }



    /**
     * 用户名
     */
    private String userName;

    /**
     * 密码
     */
    private String passwd;

    /**
     * 年龄
     */
    private int age;

    /**
     * 身高
     */
    private int hight;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHight() {
        return hight;
    }

    public void setHight(int hight) {
        this.hight = hight;
    }

    /**
     * 进行打印
     * @param str
     * @return
     */
    public String printCustom(Function<User, String> str) {
        return str.apply(this);
    }

}
